﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Ccit.OA.NewsCenter
{
    /// <summary>
    /// define column message object (NEWS_A2)
    /// </summary>
    public class MsColumn
    {
        #region private attributes

        private string _columnId;
        private string _columnName;
        private string _columnLevelCode;//栏目层级编号
        private string _pubType;
        private string _pubPurviewId;//发布权限范围id
        private string _pubPurviewType;//发布权限类型
        private string _managePurview;//管理权限范围
        private string _managePurviewType;//管理权限类型
        private string _browsePurview;//浏览权限范围
        private string _browsePurviewType;//浏览权限类型
        private string _columnDesc;//栏目说明
        private string _infoType;//信息类型
        private string _orderNo;//显示顺序
        private string _operSign;
        //自定义属性
        private string _hasChild;
        private string _childColIds;

        #endregion

        #region public attributes
        public string columnId
        {
            get { return ((!string.IsNullOrEmpty(_columnId)) ? _columnId : ""); }
            set { _columnId = value; }
        }
        public string columnName
        {
            get { return ((!string.IsNullOrEmpty(_columnName)) ? _columnName : ""); }
            set { _columnName = value; }
        }
        public string columnLevelCode
        {
            get { return ((!string.IsNullOrEmpty(_columnLevelCode)) ? _columnLevelCode : ""); }
            set { _columnLevelCode = value; }
        }
        public string pubType
        {
            get { return ((!string.IsNullOrEmpty(_pubType)) ? _pubType : ""); }
            set { _pubType = value; }
        }
        public string pubPurviewId
        {
            get { return ((!string.IsNullOrEmpty(_pubPurviewId)) ? _pubPurviewId : ""); }
            set { _pubPurviewId = value; }
        }
        public string pubPurviewType
        {
            get { return ((!string.IsNullOrEmpty(_pubPurviewType)) ? _pubPurviewType : ""); }
            set { _pubPurviewType = value; }
        }
        public string managePurview
        {
            get { return ((!string.IsNullOrEmpty(_managePurview)) ? _managePurview : ""); }
            set { _managePurview = value; }
        }
        public string managePurviewType
        {
            get { return ((!string.IsNullOrEmpty(_managePurviewType)) ? _managePurviewType : ""); }
            set { _managePurviewType = value; }
        }
        public string browsePurview
        {
            get { return ((!string.IsNullOrEmpty(_browsePurview)) ? _browsePurview : ""); }
            set { _browsePurview = value; }
        }
        public string browsePurviewType
        {
            get { return ((!string.IsNullOrEmpty(_browsePurviewType)) ? _browsePurviewType : ""); }
            set { _browsePurviewType = value; }
        }
        public string columnDesc
        {
            get { return ((!string.IsNullOrEmpty(_columnDesc)) ? _columnDesc : ""); }
            set { _columnDesc = value; }
        }
        public string infoType
        {
            get { return ((!string.IsNullOrEmpty(_infoType)) ? _infoType : ""); }
            set { _infoType = value; }
        }
        public string orderNo
        {
            get { return ((!string.IsNullOrEmpty(_orderNo)) ? _orderNo : ""); }
            set { _orderNo = value; }
        }
        public string operSign
        {
            get { return ((!string.IsNullOrEmpty(_operSign)) ? _operSign : ""); }
            set { _operSign = value; }
        }
        public string hasChild
        {
            get { return ((!string.IsNullOrEmpty(_hasChild)) ? _hasChild : ""); }
            set { _hasChild = value; }
        }

        public string ChildColIds
        {
            get { return ((!string.IsNullOrEmpty(_childColIds)) ? _childColIds : ""); }
            set { _childColIds = value; }
        }

        #endregion

        #region constructor
        public MsColumn() { }
        public MsColumn(string ColumnId, string ColumnName, string ColumnLevelCode, string PubType, string PubPurviewId,
                string PubPurviewType, string ManagePurview, string ManagePurviewType, string BrowsePurview, string BrowsePurviewType,
                string ColumnDesc, string InfoType, string OrderNo, string operSign, string HasChild, string ChildColIds)
        {
            this._columnId = ColumnId;
            this._columnName = ColumnName;
            this._columnLevelCode = ColumnLevelCode;
            this._pubType = PubType;
            this._pubPurviewId = PubPurviewId;
            this._pubPurviewType = PubPurviewType;
            this._managePurview = ManagePurview;
            this._managePurviewType = ManagePurviewType;
            this._browsePurview = BrowsePurview;
            this._browsePurviewType = BrowsePurviewType;
            this._columnDesc = ColumnDesc;
            this._infoType = InfoType;
            this._orderNo = OrderNo;
            this._operSign = operSign;
            this._hasChild = HasChild;
            this._childColIds = ChildColIds;
        }
        #endregion
    }
}
